package com.sdnu.service.entity.qvs;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Konjacer
 * @since 2022-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="QvsQuestion对象", description="")
public class QvsQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "问题id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "关联问卷id")
    private String surveyId;

    @ApiModelProperty(value = "问题名称")
    private String title;

    @ApiModelProperty(value = "问题描述")
    private String remark;

    @ApiModelProperty(value = "题目类型 0：单选 1：多选 2：单行 3：多行")
    private Integer  type;

    @ApiModelProperty(value = "是否必填 0：非必填 1：必填")
    private Integer required;

    @ApiModelProperty(value = "验证方式 0：text 1：number 2：date")
    private Integer checkStyle;

    @ApiModelProperty(value = "排列方式 0:顺序 1：随机")
    private Integer orderStyle;

    @ApiModelProperty(value = "展示方式 0：一列 1：二列 2：三列 3：四列")
    private Integer showStyle;

    @ApiModelProperty(value = "是否评测 0：不测评 1：测评")
    private Integer test;

    @ApiModelProperty(value = "评测分值")
    private Integer score;

    @ApiModelProperty(value = "排序号")
    private Integer orderby;

    @ApiModelProperty(value = "问题创建人")
    private String creator;

    @ApiModelProperty(value = "问题创建时间")
    private Date createTime;

    @ApiModelProperty(value = "记录创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "记录修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "是否被删除 0：否 1：是")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;


}
